package org.wzh.spring.di.demoa;

import java.util.Set;

import org.wzh.spring.di.demo1.CompactDisc;

public class BlankDisc2 implements CompactDisc {

	private String title;
	private String artist;
	private Set<String> tracks;


	public BlankDisc2(String title, String artist, Set<String> tracks) {
		super();
		this.title = title;
		this.artist = artist;
		this.tracks = tracks;
	}


	@Override
	public void play() {
		System.out.println("Playing " + title + " by " + artist);
		for (String track : tracks) {
			System.out.println("-Track : " + track);
		}
	}

}
